import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import Components from 'unplugin-vue-components/vite';
import { VantResolver } from 'unplugin-vue-components/resolvers';
export default {
  plugins: [
    vue(),
    Components({
      resolvers: [VantResolver()],
    }),
  ],
  server: {
    host: '0.0.0.0',//自定义主机名
    port: 8080,//自定义端口
    // 是否开启 https
    https: false,
  }
/*  proxy: {
    '/api': {
      // 后台地址
      target: 'http://127.0.0.1:8080/',
      changeOrigin: true,
      rewrite: path => path.replace(/^\/api1/, '')
    }

  }*/
}